package com.mycinema.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mycinema.biz.UserBiz;
import com.mycinema.dao.UserDao;
import com.mycinema.entity.User;


@Service("userBiz")
public class UserBizImpl implements UserBiz {
	@Autowired
	private UserDao userDao;
	
	public User checkLogin(String username, String password) {
		return userDao.checkLogin(username, password);
	}

	public List<User> checkUsername(String username) {
		
		return userDao.checkUsername(username);
	}

}
